13:52:29,880 root INFO Start RefBotLog
13:52:30,379 telegram.ext.dispatcher DEBUG Setting singleton dispatcher as <telegram.ext.dispatcher.Dispatcher object at 0x7f46fad3acc0>
13:52:30,381 JobQueue DEBUG JobQueue thread started
13:52:30,381 telegram.ext.updater DEBUG dispatcher - started
13:52:30,381 telegram.ext.updater DEBUG updater - started
13:52:30,382 telegram.ext.updater DEBUG Updater thread started (polling)
13:52:30,382 telegram.ext.updater DEBUG Start network loop retry bootstrap del webhook
13:52:30,384 telegram.ext.dispatcher DEBUG Dispatcher started
13:52:32,47 telegram.ext.updater DEBUG Start network loop retry bootstrap clean updates
13:52:32,47 telegram.ext.updater DEBUG Cleaning updates from Telegram server
13:52:33,482 telegram.ext.updater DEBUG Bootstrap done
13:52:33,482 telegram.ext.updater DEBUG Start network loop retry getting Updates
13:52:37,896 telegram.ext.updater ERROR Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:52:37,896 telegram.ext.dispatcher DEBUG Processing Update: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:52:37,896 telegram.ext.dispatcher ERROR No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 319, in _network_loop_retry
    if not action_cb():
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 280, in polling_action_cb
    allowed_updates=allowed_updates)
  File "/usr/local/lib/python3.6/dist-packages/telegram/bot.py", line 65, in decorator
    result = func(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/telegram/bot.py", line 1975, in get_updates
    result = self._request.post(url, data, timeout=float(read_latency) + float(timeout))
  File "/usr/local/lib/python3.6/dist-packages/telegram/utils/request.py", line 309, in post
    headers={'Content-Type': 'application/json'})
  File "/usr/local/lib/python3.6/dist-packages/telegram/utils/request.py", line 233, in _request_wrapper
    raise NetworkError('{0} ({1})'.format(message, resp.status))
telegram.error.NetworkError: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:52:43,624 telegram.ext.updater ERROR Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:52:43,624 telegram.ext.dispatcher DEBUG Processing Update: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:52:43,624 telegram.ext.dispatcher ERROR No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 319, in _network_loop_retry
    if not action_cb():
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 280, in polling_action_cb
    allowed_updates=allowed_updates)
  File "/usr/local/lib/python3.6/dist-packages/telegram/bot.py", line 65, in decorator
    result = func(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/telegram/bot.py", line 1975, in get_updates
    result = self._request.post(url, data, timeout=float(read_latency) + float(timeout))
  File "/usr/local/lib/python3.6/dist-packages/telegram/utils/request.py", line 309, in post
    headers={'Content-Type': 'application/json'})
  File "/usr/local/lib/python3.6/dist-packages/telegram/utils/request.py", line 233, in _request_wrapper
    raise NetworkError('{0} ({1})'.format(message, resp.status))
telegram.error.NetworkError: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:52:49,890 telegram.ext.updater ERROR Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:52:49,890 telegram.ext.dispatcher DEBUG Processing Update: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:52:49,890 telegram.ext.dispatcher ERROR No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 319, in _network_loop_retry
    if not action_cb():
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/updater.py", line 280, in polling_action_cb
    allowed_updates=allowed_updates)
  File "/usr/local/lib/python3.6/dist-packages/telegram/bot.py", line 65, in decorator
    result = func(self, *args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/telegram/bot.py", line 1975, in get_updates
    result = self._request.post(url, data, timeout=float(read_latency) + float(timeout))
  File "/usr/local/lib/python3.6/dist-packages/telegram/utils/request.py", line 309, in post
    headers={'Content-Type': 'application/json'})
  File "/usr/local/lib/python3.6/dist-packages/telegram/utils/request.py", line 233, in _request_wrapper
    raise NetworkError('{0} ({1})'.format(message, resp.status))
telegram.error.NetworkError: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:52:56,475 telegram.ext.dispatcher DEBUG Processing Update: {'update_id': 477564957, 'message': {'message_id': 702, 'date': 1559397176, 'chat': {'id': 201790432, 'type': 'private', 'username': 'unkle_alex', 'first_name': 'Alex', 'last_name': 'Kudzyuk'}, 'text': '1234', 'entities': [], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 201790432, 'first_name': 'Alex', 'is_bot': False, 'last_name': 'Kudzyuk', 'username': 'unkle_alex', 'language_code': 'ru'}}}
13:52:57,172 telegram.ext.updater ERROR Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:53:02,615 telegram.ext.updater ERROR Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:53:08,754 telegram.ext.updater ERROR Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:53:14,353 telegram.ext.updater ERROR Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running (409)
13:53:15,469 telegram.ext.updater INFO Received signal 2 (SIGINT), stopping...
13:53:15,470 JobQueue DEBUG JobQueue thread stopped
13:53:15,470 telegram.ext.updater DEBUG Stopping Updater and Dispatcher...
13:53:15,470 telegram.ext.updater DEBUG Requesting Dispatcher to stop...
13:56:14,891 telegram.ext.updater DEBUG updater - ended
14:05:28,627 root INFO Start RefBotLog
14:05:29,969 telegram.ext.dispatcher DEBUG Setting singleton dispatcher as <telegram.ext.dispatcher.Dispatcher object at 0x7f9101227be0>
14:05:29,971 JobQueue DEBUG JobQueue thread started
14:05:29,971 telegram.ext.updater DEBUG dispatcher - started
14:05:29,971 telegram.ext.updater DEBUG updater - started
14:05:29,972 telegram.ext.updater DEBUG Updater thread started (polling)
14:05:29,972 telegram.ext.updater DEBUG Start network loop retry bootstrap del webhook
14:05:29,974 telegram.ext.dispatcher DEBUG Dispatcher started
14:05:30,897 telegram.ext.updater DEBUG Start network loop retry bootstrap clean updates
14:05:30,898 telegram.ext.updater DEBUG Cleaning updates from Telegram server
14:05:32,196 telegram.ext.updater DEBUG Bootstrap done
14:05:32,196 telegram.ext.updater DEBUG Start network loop retry getting Updates
14:05:35,296 telegram.ext.dispatcher DEBUG Processing Update: {'update_id': 477564959, 'message': {'message_id': 704, 'date': 1559397935, 'chat': {'id': 201790432, 'type': 'private', 'username': 'unkle_alex', 'first_name': 'Alex', 'last_name': 'Kudzyuk'}, 'text': '1234', 'entities': [], 'caption_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 201790432, 'first_name': 'Alex', 'is_bot': False, 'last_name': 'Kudzyuk', 'username': 'unkle_alex', 'language_code': 'ru'}}}
14:05:40,308 telegram.ext.updater DEBUG Timed out getting Updates: Timed out
14:05:46,371 telegram.ext.updater DEBUG Timed out getting Updates: Timed out
14:05:47,860 telegram.ext.updater INFO Received signal 2 (SIGINT), stopping...
14:05:47,860 JobQueue DEBUG JobQueue thread stopped
14:05:47,860 telegram.ext.updater DEBUG Stopping Updater and Dispatcher...
14:05:47,861 telegram.ext.updater DEBUG Requesting Dispatcher to stop...
16:13:02,474 telegram.ext.dispatcher ERROR An uncaught error was raised while processing the update
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/urllib3/connection.py", line 160, in _new_conn
    (self._dns_host, self.port), self.timeout, **extra_kw)
  File "/usr/local/lib/python3.6/dist-packages/urllib3/util/connection.py", line 80, in create_connection
    raise err
  File "/usr/local/lib/python3.6/dist-packages/urllib3/util/connection.py", line 70, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 603, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 355, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/local/lib/python3.6/dist-packages/urllib3/connection.py", line 183, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.6/dist-packages/urllib3/connection.py", line 169, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f910125c358>: Failed to establish a new connection: [Errno 110] Connection timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 641, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.6/dist-packages/urllib3/util/retry.py", line 399, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.3.247', port=8080): Max retries exceeded with url: /ODATA/Odata/standard.odata/AccumulationRegister_%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80%D1%8B%D0%9D%D0%B0%D0%A2%D0%B5%D1%80%D0%BC%D0%B8%D0%BD%D0%B0%D0%BB%D0%B5/Balance?$format=json&$select=%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80/Description,%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80/Ref_Key&$filter=endswith(%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80/Description,%271234%27)%20eq%20true&$expand=%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f910125c358>: Failed to establish a new connection: [Errno 110] Connection timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/dispatcher.py", line 279, in process_update
    handler.handle_update(update, self)
  File "/usr/local/lib/python3.6/dist-packages/telegram/ext/messagehandler.py", line 169, in handle_update
    return self.callback(dispatcher.bot, update, **optional_args)
  File "/opt/BOT/Ref_Bot.py", line 179, in text_message
    request = search_cont_by_four_numbers(contnum)
  File "/opt/BOT/Ref_Bot.py", line 64, in search_cont_by_four_numbers
    new_test = http_rest.send_odata_get("AccumulationRegister_КонтейнерыНаТерминале/Balance", text_request)
  File "/opt/BOT/http_rest.py", line 16, in send_odata_get
    r = requests.get(url + object_name + param_str, auth=auth)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 516, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='192.168.3.247', port=8080): Max retries exceeded with url: /ODATA/Odata/standard.odata/AccumulationRegister_%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80%D1%8B%D0%9D%D0%B0%D0%A2%D0%B5%D1%80%D0%BC%D0%B8%D0%BD%D0%B0%D0%BB%D0%B5/Balance?$format=json&$select=%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80/Description,%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80/Ref_Key&$filter=endswith(%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80/Description,%271234%27)%20eq%20true&$expand=%D0%9A%D0%BE%D0%BD%D1%82%D0%B5%D0%B9%D0%BD%D0%B5%D1%80 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f910125c358>: Failed to establish a new connection: [Errno 110] Connection timed out',))
16:13:02,480 telegram.ext.updater DEBUG updater - ended
16:13:03,482 telegram.ext.dispatcher DEBUG orderly stopping
16:13:03,482 telegram.ext.dispatcher DEBUG Dispatcher thread stopped
16:13:03,482 telegram.ext.updater DEBUG dispatcher - ended
16:13:03,485 telegram.ext.dispatcher DEBUG Waiting for async thread 1/4 to end
16:13:03,485 telegram.ext.dispatcher DEBUG Closing run_async thread 8107f3fa-dfe1-46d5-b4bf-d12ac5dbcf1c_1/4
16:13:03,486 telegram.ext.dispatcher DEBUG Closing run_async thread 8107f3fa-dfe1-46d5-b4bf-d12ac5dbcf1c_3/4
16:13:03,486 telegram.ext.dispatcher DEBUG async thread 1/4 has ended
16:13:03,486 telegram.ext.dispatcher DEBUG Waiting for async thread 2/4 to end
16:13:03,486 telegram.ext.dispatcher DEBUG Closing run_async thread 8107f3fa-dfe1-46d5-b4bf-d12ac5dbcf1c_0/3
16:13:03,487 telegram.ext.dispatcher DEBUG Closing run_async thread 8107f3fa-dfe1-46d5-b4bf-d12ac5dbcf1c_2/3
16:13:03,487 telegram.ext.dispatcher DEBUG async thread 2/4 has ended
16:13:03,487 telegram.ext.dispatcher DEBUG Waiting for async thread 3/4 to end
16:13:03,487 telegram.ext.dispatcher DEBUG async thread 3/4 has ended
16:13:03,487 telegram.ext.dispatcher DEBUG Waiting for async thread 4/4 to end
16:13:03,487 telegram.ext.dispatcher DEBUG async thread 4/4 has ended
16:13:03,488 telegram.ext.updater DEBUG Waiting for dispatcher thread to end
16:13:03,488 telegram.ext.updater DEBUG dispatcher thread has ended
16:13:03,488 telegram.ext.updater DEBUG Waiting for updater thread to end
16:13:03,488 telegram.ext.updater DEBUG updater thread has ended
